package org.feng.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sun.istack.internal.NotNull;
import org.feng.entity.CustomDict;

import java.util.List;

/**
 * 自定义字典服务接口
 *
 * @author feng
 */
public interface CustomDictService extends IService<CustomDict> {

    List<CustomDict> list(CustomDict dict);

    /**
     * 查询一级子子典
     *
     * @param dictId 字典id
     * @return 字典列表
     */
    List<CustomDict> listChildrenById(Long dictId);

    CustomDict getByDictKey(@NotNull String dictKey);
}
